const Service = require('../service/label.service')

class LabelController {
  async create (ctx, next) {
    const {name} = ctx.request.body;
    const result = await Service.create(name)
    ctx.body = result
  }
}

module.exports = new LabelController()